package com.whnk.workflow.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.whnk.common.base.BaseEntity;
import java.util.Date;

/**
 * 请假表 wf_leave
 * 
 * @author whwhnk
 * @date 2019-04-16
 */
public class Leave extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 工作流关联id */
	private String businessKey;
	/** 登录账号 */
	private String loginName;
	/** 用户昵称 */
	private String userName;
	/** 请假天数 */
	private Integer days;
	/** 请假起始日期 */
	private Date fromDate;
	/** 请假截止日期 */
	private Date toDate;
	/** 请假原因 */
	private String reason;
	/** 当前节点 */
	private String step;
	/** 当前节点审批人登录账号 */
	private String aprLoginName;
	/** 当前节点审批人用户昵称 */
	private String aprUserName;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;

	public void setBusinessKey(String businessKey) 
	{
		this.businessKey = businessKey;
	}

	public String getBusinessKey() 
	{
		return businessKey;
	}
	public void setLoginName(String loginName) 
	{
		this.loginName = loginName;
	}

	public String getLoginName() 
	{
		return loginName;
	}
	public void setUserName(String userName) 
	{
		this.userName = userName;
	}

	public String getUserName() 
	{
		return userName;
	}
	public void setDays(Integer days) 
	{
		this.days = days;
	}

	public Integer getDays() 
	{
		return days;
	}
	public void setFromDate(Date fromDate) 
	{
		this.fromDate = fromDate;
	}

	public Date getFromDate() 
	{
		return fromDate;
	}
	public void setToDate(Date toDate) 
	{
		this.toDate = toDate;
	}

	public Date getToDate() 
	{
		return toDate;
	}
	public void setReason(String reason) 
	{
		this.reason = reason;
	}

	public String getReason() 
	{
		return reason;
	}
	public void setStep(String step) 
	{
		this.step = step;
	}

	public String getStep() 
	{
		return step;
	}
	public void setAprLoginName(String aprLoginName) 
	{
		this.aprLoginName = aprLoginName;
	}

	public String getAprLoginName() 
	{
		return aprLoginName;
	}
	public void setAprUserName(String aprUserName) 
	{
		this.aprUserName = aprUserName;
	}

	public String getAprUserName() 
	{
		return aprUserName;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("businessKey", getBusinessKey())
            .append("loginName", getLoginName())
            .append("userName", getUserName())
            .append("days", getDays())
            .append("fromDate", getFromDate())
            .append("toDate", getToDate())
            .append("reason", getReason())
            .append("step", getStep())
            .append("aprLoginName", getAprLoginName())
            .append("aprUserName", getAprUserName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
